import { invoke } from '@tauri-apps/api/tauri'

export const sendCommand = async (command: string, params?: any): Promise<any> => {
    const result = await invoke(command, params);
    console.log(`callRustFun[${command}] Resp:`, result);
    return result;
}